﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Group3.Framework.Extensions
{
    public static class ExtensionNullable
    {
        public static T ReadValue<T>(this Nullable<T> data, T defaultvalue)
            where T : struct
        {
            return data.HasValue ? data.Value : defaultvalue;
        }
    }
}
